package com.example.userwallet.mapper;

import com.example.userwallet.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Author:Nyapii
 */
@Mapper
public interface UserMapper {

    User getUserById(@Param("id") Long id);

    User getUserByName(@Param("name") String name);

    int addUser(User user);

    int updateUser(User user);
}
